/*for yaoyao li's id number
2013-3-26 23:29:09
author:jiangkai (hacker for No.1)
*/
var yuan='3207211992062';
var Wi = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 ];
var ValideCode = [ 1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2 ];

function isTrueValidateCodeBy18IdCard(a_idCard) {   
    var sum = 0; // 声明加权求和变量   
    /*if (a_idCard[17].toLowerCase() == 'x') {   
        a_idCard[17] = 10;// 将最后位为x的验证码替换为10方便后续操作   
    } */  
    for ( var i = 0; i < 17; i++) {   
        sum += Wi[i] * a_idCard[i];// 加权求和   
    }   
    valCodePosition = sum % 11;// 得到验证码所位置   
    if (a_idCard[17] == ValideCode[valCodePosition]) {   
        return true;   
    } else {   
        return false;   
    }   
}

for (var i = 1; i<=999;i=i+2){
	if (i<=9)
		var id = yuan +'00'+i ;
	else{
		if (i<=99)
			var id = yuan + '0' + i;
		else
			var id = yuan + i;
	}
	for(var j = 0 ; j <= 9 ; j++ ){
		id = id + j;
		if (isTrueValidateCodeBy18IdCard(id))
			document.write(id+"<br>");
	}
}
